package com.mi.rule.wx_pay.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.mi.rule.db.core.MiEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 模板表 实体
 * </p>
 *
 * @author 王永吉
 * @date 2019-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("0_type")
public class Type extends Model<Type> implements MiEntity {

    public static final String TABLE_NAME = "0_type";

    private static final long serialVersionUID = 1L;


    /**
     * PK
     */
    @TableId("id")
    private String id;

    /**
     * 测试名称
     */
    @TableField("name")
    private String name;


    /**
     * PK
     */
    public static final String ID = "id";
    public static final String ID_TF = "id";
    /**
     * 测试名称
     */
    public static final String NAME = "name";
    public static final String NAME_TF = "name";

    /**
     * 返回当前对象的JSON字符串
     */
    public String jsonStr() {
        return JSON.toJSONString(this);
    }
}
